<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@include file="/common/taglibs.jsp"%>
<%@include file="/common/meta.jsp"%>

<html lang="zh-CN">
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<link rel="stylesheet" href="<c:url value="/common/bootstrap-3.3.2/css/bootstrap.min.css"/>" type="text/css"/>
	<link rel="stylesheet" href="<c:url value="/common/bootstrap-3.3.2/css/docs.min.css"/>" type="text/css"/>
	<!--[if lte IE 9]>
	<script src="<c:url value="/common/bootstrap-3.3.2/js/respond.min.js"/>"></script>
	<script src="<c:url value="/common/bootstrap-3.3.2/js/html5shiv.min.js"/>"></script>
	<![endif]-->
	<script src="<c:url value="/common/bootstrap-3.3.2/js/bootstrap.min.js"/>"></script>
	<title>督查信息上报</title>
	<script type="text/javascript">
	$(document).ready(function(){
		
		/**
		 * 事件来源   如果是“媒体曝光”则启用媒体曝光选项
		 */
		$("#from").change(function(){
			var sjly = $("#from").find("option:selected").text();
			//alert(sjly);
			if(sjly=='媒体曝光') {
				//document.getElementById("mediaLevel").disabled=false;
				$("#mediaLevel")[0].disabled=false;
				$("#mtbdjt")[0].hidden = false;
			} else {
				document.getElementById("mediaLevel").disabled=true;
				$("#mtbdjt")[0].hidden = true;
			}
		});
		
		/**
		 * 办理情况   如果是“跟踪管理”或者“已办结”时，则启用上传附件
		 */
		$("#handleStatus").change(function(){
			var bjqk = $("#handleStatus").find("option:selected").text();
			//alert(sjly);
			if(bjqk=='跟踪管理' || bjqk=='已办结') {
				$("#blqkfj")[0].hidden = false;
			} else {
				$("#blqkfj")[0].hidden = true;
			}
		});

	});
	
	</script>
</head>
<body>

<h5 align="left" ></h5>
<div align="center">
	<div class="panel panel-default" style="width: 99%;" align="center">
		<div class="panel-heading">
        	<h4 class="panel-title" align="left"><b>督查管理  &gt;&gt; 督查上报</b></h4>
      	</div>
      	<div class="panel-body">
			<form class="form-horizontal" role="form">
				<h5 align="left" ></h5>
            	<fieldset>
                 	<legend>督  办  事  件</legend>
                 	<div class="form-group">
	                  	<label for="disabledSelect"  class="col-sm-1 control-label">事件名称</label>
	                  	<div class="col-sm-8">
							<input class="form-control input-sm" id="name" name="name" type="text"/>
	                  	</div>
	                  	<label class="col-sm-1 control-label" for="ds_name">&nbsp;</label>
					</div>
                	<div class="form-group">
                  		<label class="col-sm-1 control-label" for="ds_name">事件单位</label>
                  		<div class="col-sm-2">
	                     	<input class="form-control input-sm" id="departmentName" name="departmentName" type="text" placeholder="事件单位"/>
                  		</div>
                  		<label class="col-sm-1 control-label" for="ds_name">事件来源</label>
                  		<div class="col-sm-2">
	                     	<select class="form-control input-sm" id="from" name="from">
                  				<option value="-1">请选择</option>
                  				<option value="0">领导批示</option>
                  				<option value="1">群众投诉</option>
                  				<option value="2">督查暗访</option>
                  				<option value="3">媒体曝光</option>
                  			</select>
                  		</div>
                  		<label class="col-sm-1 control-label" for="ds_name">媒体曝光</label>
                  		<div class="col-sm-2">
	                     	<select class="form-control input-sm" id="mediaLevel" name="mediaLevel" disabled="disabled">
                  				<option value="-1">请选择</option>
                  				<option value="0">名称</option>
                  				<option value="1">中央级</option>
                  				<option value="2">省级</option>
                  				<option value="3">市级</option>
                  				<option value="4">其他</option>
                  			</select>
                  		</div>
                  		<div id="mtbdjt" hidden >
	                  		<div class="col-sm-1">
							    <input type="file" id="exampleInputFile" title="上传报道截图">
	                  		</div>
                  		</div>
               		</div>
               		<div class="form-group">
               			<label class="col-sm-1 control-label" for="ds_name">事件分类</label>
                  		<div class="col-sm-2">
                  			<select class="form-control input-sm" id="type" name="type">
                  				<option value="-1">请选择</option>
                  				<option value="0">非法生产</option>
                  				<option value="1">非法经营</option>
                  			</select>
                  		</div>
                  		<label class="col-sm-1 control-label" for="ds_name">网址</label>
                  		<div class="col-sm-2">
	                     	<input class="form-control input-sm" id="mediaUrl" name="mediaUrl" type="text" placeholder="事件网址"/>
                  		</div>
                  		<label class="col-sm-1 control-label" for="ds_name">办理情况</label>
                  		<div class="col-sm-2">
	                     	<select class="form-control input-sm" id="handleStatus" name="handleStatus">
                  				<option value="-1">请选择</option>
                  				<option value="0">未办结</option>
                  				<option value="1">正在办理</option>
                  				<option value="2">跟踪管理</option>
                  				<option value="3">已办结</option>
                  			</select>
                  		</div>
                  		<div id="blqkfj" hidden>
	                  		<div class="col-sm-1">
		                     	<input type="file" id="exampleInputFile" title="上传办理材料">
	                  		</div>
	                  	</div>
               		</div>
                 	<div class="form-group">
	                  	<div align="center" ><label for="disabledSelect"  class="col-sm-1 control-label">事件内容</label></div>
	                  	<div class="col-sm-8">
							<textarea  class="form-control input-sm" id="content" name="content" rows="3" placeholder="事件的时间、地点、原因、处理情况、结果、问责情况、下步打算（200字以内）。"></textarea>
	                  	</div>
	                  	<label class="col-sm-1 control-label" for="ds_name">&nbsp;</label>
					</div>
            	</fieldset>
                <h5 align="left" ></h5>
                <button type="button" class="btn btn-primary ">&nbsp;&nbsp;<b>保存</b>&nbsp;&nbsp;</button>
			</form>
		</div>
	</div>
</div>
</body>
</html>


